<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 
<head lang="en">

    <base href="<%=basePath%>">
    <meta charset="UTF-8">
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'/>
   <title>龙翔收银系统登陆</title>
    <link href="style/a.css" rel="stylesheet"/>
    
</head>
<body>
<header>
<div class="top" > </div>
    <div class="text" >
   
        <a><em>欢迎使龙翔用收银系统</em>|<span>请登陆</span></a>
    </div>
</header>
<div id="content">
    <img src="img/jian.png" width="234" height="150"   />

 <form action="<%=path %>/logn/logn" method="post" onsubmit="return confirmation()" >

        <input  id="usename" type="text" name="usename" value="用户名"/><br/>
        <p id="name"></p>
        <input  id="password" type="password" name="password" value="........"/>
        <p id="pass"></p>
        <div class="bt clear" align="right">
           
           
            <span >${messages }</span>
             <input id="submit" type="submit" value="登录" />
        </div>
       
    </form>
</div>
 <script src="js/jquery-1.10.2.js"></script>
<script type="text/javascript">
			function confirmation(){
					
						if($("#usename").val() == null || $("#usename").val() == "请输入账号" || $("#usename").val() == ""){
							$("#name").html("账号不能为空！");
							return false;
						}else if($("#password").val() == null || $("#password").val() == ""){
							$("#pass").html("密码不能为空！");
							return false;
						}else {
						return true;
							}
					}
				
				
			</script>
<div id="footer">
    <p><span>© 2016 soft 梧州学院</span></p>
</div>
</body>
</html>